home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / prog_d / sndkey11.zip / README.TXT < prev    next >
Text File  |  1996-04-01  |  3KB  |  82 lines

  1. About SendKey
  2.  
  3. SendKey is a DLL which you can use to send keystrokes to another 
  4. application from your own program written using Delphi.  The package 
  5. consists of:
  6.  
  7. SNDKEY32.DLL - a DLL which you must distribute with your application;
  8.  
  9. SNDKEY16.DLL - a 16-bit version of the DLL;
  10.  
  11. SENDKEY.PAS  - a unit containing constant and function definitions which
  12. you must include in the æusesÆ clause of any unit which uses SendKey;
  13.  
  14. SEND.DPR
  15. SMAIN.PAS
  16. SMAIN.DFM    - a test project to demonstrate how SendKey works.
  17.  
  18. To see SendKey in action, build and run the demo project SEND.DPR.  If you
  19. want to build the 16-bit version you should first amend the declaration in
  20. the 'implementation' part of SENDKEY.PAS so that it refers to 'SNDKEY16'
  21. instead of 'SNDKEY32'.
  22.  
  23. To use SendKey, you must first get the handle of the window you want to 
  24. send keystrokes to (for example, using the API function FindWindow) and 
  25. then call SendKeyString with two parameters: the window handle and the 
  26. character string you want to send.  Non-printing character keys are 
  27. represented by ASCII codes 228 - 255; the constant definitions for these
  28. are given in the file SENDKEY.INT.
  29.  
  30. SendKeyString returns a Boolean result which is false if the function fails.
  31.  
  32. If SendKey does not work, make sure that the window handle you pass it is
  33. valid, and that it is the correct handle for the window you want to send the
  34. keystrokes to.  If you are sending keystrokes to a dialog box then it is
  35. sometimes better to get the handle of the dialog box window.  In Win32, API
  36. calls like GetActiveWindow can return a value of 0.  Therefore it is better
  37. to use functions like FindWindow to be sure you have the correct handle.
  38.  
  39.  
  40. Registering SendKey
  41.  
  42. SendKey is shareware.  This is a trial run version, which means that it 
  43. will only work when your program is run from the Delphi development 
  44. environment.  An unrestricted version, with full distribution rights for 
  45. the DLL and a copy of the source code, will be sent on registration.
  46.  
  47. Registration via CompuServe costs $15.  GO SWREG, choose the option to
  48. Register Shareware, and use the registration ID 10326.  You will receive
  49. the unrestricted DLL and source code by return email, usually within 2
  50. to 3 working days.
  51.  
  52. If you are not a member of CompuServe, the registration fee may be remitted 
  53. by one of the following methods:
  54.  
  55. i)  a cheque for 12 pounds UK Sterling, drawn on a UK bank;
  56.  
  57. ii) $15 in US banknotes, sent at your risk.
  58.  
  59.  
  60. Legal stuff
  61.  
  62. This software is copyright ⌐ 1996 J M Technical Services.  All rights 
  63. reserved.  You are granted a licence to use the software for evaluation 
  64. purposes only, when used as part of an application developed using Borland 
  65. Delphi 1 and run from the Delphi development environment.
  66.  
  67. No warranty is given or implied as to the fitness of the software for any 
  68. purpose.  No responsibility whatsoever is accepted for any loss or damage, 
  69. including consequential loss or damage, arising out of the use of the 
  70. software.
  71.  
  72.  
  73. J M Technical Services
  74. 11a Cedar Lane
  75. Cockermouth
  76. Cumbria
  77. CA13 9HN
  78.  
  79. Email contacts:
  80. support@jmtech.demon.co.uk
  81. 100015.1242@compuserve.com
  82.